for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"use strict";
class Request {
/**
* @param {string} uri
* @param {string} method
* @param {Object} payload
* @param {Object} queryString
* @param {Object} headers
* @param {boolean} json
*/
constructor(uri, method = 'GET', payload = {}, queryString = {}, headers = {}, json = true) {
this.uri = uri;
this.method = method;
this.payload = payload;
this.queryString = queryString;
this.headers = headers;
this.json = json;
}
* @public
* @returns {string}
getUri() {
return this.uri;
* @returns {Object}
getPayload() {
return this.payload;
getQueryString() {
return this.queryString;
getHeaders() {
return this.headers;
getMethod() {
return this.method;
* @returns {boolean}
isJson() {
return this.json;
module.exports = Request;